<?php if(!empty($adinfo)): //广告?>  
<div id="navigation">
	<div class="wrapper">
			<a href="<?=site_url('activities/index/'.$adinfo[0]['url'])?>" title="<?=$adinfo[0]['title']?>"><img src="<?=site_url($adinfo[0]['thumb'])?>" alt="<?=$adinfo[0]['title']?>"/></a>
	</div>
</div>
<?php endif;?>
